package com.xszx.controller;

import com.xszx.entity.Student;
import com.xszx.entity.Teacher;
import com.xszx.service.impl.StudentFunctionImpl;
import com.xszx.service.impl.TeacherFunctionImpl;

/**
 * 学校进行校运会开幕式
 * @author Administrator
 *
 */
public class Main {
	public static void main(String[] args) {
		//1.学生升旗
		Student s1 = new Student("计算机系", "国旗班", "王多鱼");
		Student s2 = new Student("计算机系", "国旗班", "瞎猪");
		Student s3 = new Student("计算机系", "国旗班", "大聪明");
		Student s4 = new Student("计算机系", "国旗班", "王胜男");
		Student s5 = new Student("计算机系", "国旗班", "沈腾");
		StudentFunctionImpl sfi = new StudentFunctionImpl();
		Student students[] = {s1,s2,s3,s4,s5};
		sfi.raisingNationalFlag(students);
		//2.老师播放国歌
		TeacherFunctionImpl tfl = new TeacherFunctionImpl();
		Teacher teacher = new Teacher("音乐老师", "张老师");
		tfl.playNationalAnthem(teacher);
		//3.老师(校长)发表致辞
		teacher = new Teacher("校长", "王校长");
		tfl.releaseAddress(teacher);
		//4.学生代表发言
		Student student = new Student("计算机系", "1801", "杨洋");
		sfi.speech(student);
		//5.学生入场
		//计算机系的学生代表
		Student jsjx01 = new Student("计算机系", "1801", "计成龙");
		Student jsjx02 = new Student("计算机系", "1801", "计华皓");
		Student jsjx03 = new Student("计算机系", "1801", "计英卓");
		Student jsjx04 = new Student("计算机系", "1801", "计辰皓");
		Student jsjx05 = new Student("计算机系", "1801", "计德宇");
		
		//外语系学生代表
		Student wy01 = new Student("外语系", "1802", "外博靖");
		Student wy02 = new Student("外语系", "1802", "外文哲");
		Student wy03 = new Student("外语系", "1802", "外振锐");
		Student wy04 = new Student("外语系", "1802", "外鸿博");
		Student wy05 = new Student("外语系", "1802", "外明诚");
		
		//中文系学生代表
		Student zw01 = new Student("中文系", "1803", "中冠宇");
		Student zw02 = new Student("中文系", "1803", "中涵亮");
		Student zw03 = new Student("中文系", "1803", "中思源");
		Student zw04 = new Student("中文系", "1803", "中思远");
		Student zw05 = new Student("中文系", "1803", "中瀚天");
		
		Student studentDb[][] = {{jsjx01,jsjx02,jsjx03,jsjx04,jsjx05},
								{wy01,wy02,wy03,wy04,wy05},
								{zw01,zw02,zw03,zw04,zw05}};
		sfi.admission(studentDb);
		
		//6.老师(裁判)入场
		Teacher t1 = new Teacher("裁判员", "赵裁判");
		Teacher t2 = new Teacher("裁判员", "钱裁判");
		Teacher t3 = new Teacher("裁判员", "孙裁判");
		Teacher t4 = new Teacher("裁判员", "李裁判");
		Teacher t5 = new Teacher("裁判员", "周裁判");
		Teacher teacher2[] = {t1,t2,t3,t4,t5};
		tfl.admission(teacher2);
		
		//7.学生开幕式表演
		Student tx01 = new Student("艺术系", "1804", "天鹅1号");
		Student tx02 = new Student("艺术系", "1804", "天鹅2号");
		Student tx03 = new Student("艺术系", "1804", "天鹅3号");
		Student tx04 = new Student("艺术系", "1804", "天鹅4号");
		Student txs[] = {tx01,tx02,tx03,tx04};
		sfi.dance(txs);
		
		//8.老师(校长)总结
		tfl.summary(teacher);
		
		
	}
}

